<h1>Editing device</h1>
<%=error_messages_for :device %>
<% form_for :device, :url => device_path(@device), :html => { :method => 'put' } do |f| %>
  <%= render :partial => 'fields', :locals => { :f => f } %>
  <p><%= submit_tag "Update Device" %></p>
<% end %>
